package bean;

public class User {
    private int uid;
    private String uname;
    private String upwd;
    private int isalive;
    private int rights;

    private int adminNum;
    private int manager;
    private int employess;
    private int sum;
    private int allnum;

    public User(){}

    public User(int uid, String uname, String upwd, int isalive, int rights, int adminNum, int manager, int employess, int sum,int allnum) {
        this.uid = uid;
        this.uname = uname;
        this.upwd = upwd;
        this.isalive = isalive;
        this.rights = rights;
        this.adminNum = adminNum;
        this.manager = manager;
        this.employess = employess;
        this.sum = sum;
        this.allnum = allnum;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public int getIsalive() {
        return isalive;
    }

    public void setIsalive(int isalive) {
        this.isalive = isalive;
    }

    public int getRights() {
        return rights;
    }

    public void setRights(int rights) {
        this.rights = rights;
    }

    public int getAdminNum() {
        return adminNum;
    }

    public void setAdminNum(int adminNum) {
        this.adminNum = adminNum;
    }

    public int getManager() {
        return manager;
    }

    public void setManager(int manager) {
        this.manager = manager;
    }

    public int getEmployess() {
        return employess;
    }

    public void setEmployess(int employess) {
        this.employess = employess;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public int getAllnum() {
        return allnum;
    }

    public void setAllnum(int allnum) {
        this.allnum = allnum;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", upwd='" + upwd + '\'' +
                ", isalive=" + isalive +
                ", rights=" + rights +
                ", adminNum=" + adminNum +
                ", manager=" + manager +
                ", employess=" + employess +
                '}';
    }
}
